#include "Animal.h"

Animal::Animal(int position,int iconId){
	
	this->iconId=iconId;
	this->position=position;
	char file[4];
	sprintf(file,"%d",iconId);
	this->icon=Animal_File_Start+file+Animal_File_End;
	this->xPosition=position%10;
	this->yPosition=position/10;
	
	this->xCoord=(this->xPosition)*34+10;
	this->yCoord=(this->yPosition+1)*34-20;
}